<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;

/* @var $this yii\web\View */
/* @var $searchModel common\models\DdWxappNavbarSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Dd Wxapp Navbars';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dd-wxapp-navbar-index">



    <p>
        <?= Html::a('添加 Dd Wxapp Navbar', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?php Pjax::begin(); ?>
    <?php // echo $this->render('_search', ['model' => $searchModel]);?>
    <div class="panel panel-default">
        <div class="box-body">
            <div class="panel-heading">
                <h3  class="panel-title"><?= Html::encode($this->title) ?></h3>
            </div>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'wxapp_id',
            'wxapp_title',
            'top_text_color',
            'top_background_color',
            'create_time:datetime',
            //'update_time:datetime',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

    <?php Pjax::end(); ?>

</div>
    </div>
</div>